from django.urls import path,re_path
from . import views
urlpatterns = [
    path('',views.IndexView.as_view()),
    path('category/<int:category_id>',views.IndexView.as_view()),
    path('category/<int:category_id>/page/<int:pagenum>',views.IndexView.as_view()),
    path('goodsdetails/<int:goods_id>',views.DetailView.as_view()),     #商品详情的路由配置
    path('page/<int:pagenum>',views.TestView.as_view()),
    # re_path(r'page/(?P<pagenum>\d+)',views.IndexView.as_view())
]